package Server.Message;

import Client.logic.MyFile;
import Server.DataBase.Lesson;

public class MessageAddTask extends Message{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Lesson lesson;
	
	private int day, month, year;
	
	private MyFile taskFile;
/**
 * 
 * @param lesson
 * @param day
 * @param month
 * @param year
 * @param taskFile
 */
	public MessageAddTask(Lesson lesson, int day, int month, int year, MyFile taskFile) {
		super(MessageType.MESSAGE_ADD_TASK);
		this.lesson = lesson;
		this.day = day;
		this.month = month;
		this.year = year;
		this.taskFile = taskFile;
	}
/**
 * 
 * @return lesson
 */
	public Lesson getLesson() {
		return lesson;
	}
/**
 * 
 * @return
 */
	public MyFile getTaskFile() {
		return taskFile;
	}
/**
 *  
 * @return
 */
	public int[] getDate() {
		int[] date = {day, month, year};
		return date;
	}
}
